// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './routers/index';

//自定义配置
import settings from "./settings";
Vue.prototype.$settings = settings;

//导入elementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

//调用插件
Vue.use(ElementUI);

//调用axios插件
import axios from 'axios';    //从node_modules目录中导入包
//允许ajax发送请求时附带cookie
axios.defaults.withCredentials=true;
Vue.prototype.$axios = axios //把对象挂在vue中



Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
});
